From 38ac6fa969a43ca993e610deae8976f9f2877fbb Mon Sep 17 00:00:00 2001 From: Wei Liu Date: Wed, 30 Aug 2017 18:11:10 +0100 Subject: [PATCH] x86/mm: introduce trace point for mmio_ro emulation Using ptrw_emulation trace point is wrong. Signed-off-by: Wei Liu Acked-by: Jan Beulich --- xen/arch/x86/mm.c | 2 +- xen/include/asm-x86/perfc_defn.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/xen/arch/x86/mm.c b/xen/arch/x86/mm.c index 9aff58a545..f4b9747aba 100644 --- a/xen/arch/x86/mm.c +++ b/xen/arch/x86/mm.c @@ -5405,7 +5405,7 @@ int mmio_ro_do_page_fault(struct vcpu *v, unsigned long addr, /* Fallthrough */ case X86EMUL_RETRY: - perfc_incr(ptwr_emulations); + perfc_incr(mmio_ro_emulations); return EXCRET_fault_fixed; } diff --git a/xen/include/asm-x86/perfc_defn.h b/xen/include/asm-x86/perfc_defn.h index aac9331843..6db8746906 100644 --- a/xen/include/asm-x86/perfc_defn.h +++ b/xen/include/asm-x86/perfc_defn.h @@ -30,6 +30,7 @@ PERFCOUNTER(copy_user_faults, "copy_user faults") PERFCOUNTER(map_domain_page_count, "map_domain_page count") PERFCOUNTER(ptwr_emulations, "writable pt emulations") +PERFCOUNTER(mmio_ro_emulations, "mmio ro emulations") PERFCOUNTER(exception_fixed, "pre-exception fixed") -- 2.30.2